﻿using Might.Infrastructure.ModelicaDOM.Expressions;
using Might.Infrastructure.DOM;

namespace Might.Infrastructure.ModelicaDOM.Equations {
    
    /// <summary>
    /// Interface for connect clauses in Modelica
    /// </summary>   
    [ContainedReference(ReferenceNames.ConnectClauseLeftSideReference)]
    [ContainedReference(ReferenceNames.ConnectClauseRightSideReference)]
    public interface  IConnectClause : IEquation {
        
        /// <summary>
        /// Reference to the component on the right side of connect clause
        /// </summary>
        ComponentReference RightCompReference { get; set; }

        /// <summary>
        /// Reference to the component on the left side of connect clause
        /// </summary>
        ComponentReference LeftCompReference { get; set; }        
    }
}
